package com.lx.core.config;

import com.lx.core.spring.CommonInitStart;
import com.lx.core.spring.SpringRefreShedListener;
import com.lx.constants.aspect.SysLogAspect;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;

/**
 * Created by lanyxp on 2021/2/23 10:48
 * <br>配置启动加载</br>
 */
@Component
@Slf4j
public class StartRefreshedListenerConfig extends SpringRefreShedListener {
    @Override
    protected void runInit(ApplicationContext ctx) {
        //初始化日志记录器
        runInit(ctx, SysLogAspect.class);
        //初始化分布式ID workerId动态获取
        runInit(ctx, CommonInitStart.class);
    }
}
